<p class="Paragraph">MsgBox Text As String [,Type As Integer [,Dialogtitle As String]] (As Statement) or MsgBox (Text As String [,Type As Integer [,Dialogtitle As String]]) (As Function)</p>
<p class="Paragraph">Text: String expression displayed as a message in the dialog box. Line breaks can be inserted with Chr$(13). Only the first 255 characters of a string are displayed; all exceeding characters are disregarded.</p>
<p class="Paragraph">DialogTitle: String expression displayed in the title bar of the dialog. If omitted, the title bar displays the name of the respective application.</p>
<p class="Paragraph">Type: Any integer expression that specifies the dialog type, along with the number and type of buttons to display, and the icon type. <span class="T1">Type</span> represents a combination of bit patterns, i.e., a combination of elements can be defined by adding their respective values:</p>
<p class="Paragraph">0 : Display OK button only.</p>
<p class="Paragraph">1 : Display OK and Cancel buttons.</p>
<p class="Paragraph">2 : Display Cancel and Retry buttons.</p>
<p class="Paragraph">3 : Display Yes, No and Cancel buttons.</p>
<p class="Paragraph">4 : Display Yes and No buttons.</p>
<p class="Paragraph">5 : Display Retry and Cancel buttons.</p>
<p class="Paragraph">16 : Add the Stop icon to the dialog.</p>
<p class="Paragraph">32 : Add the Question icon to the dialog.</p>
<p class="Paragraph">48 : Add the Exclamation icon to the dialog.</p>
<p class="Paragraph">64 : Add the Information icon to the dialog.</p>
<p class="Paragraph">0 : First button in the dialog as default button.</p>
<p class="Paragraph">256 : Second button in the dialog as default button.</p>
<p class="Paragraph">512 : Third button in the dialog as default button.</p>